<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%--
显示在列表上面的分页区，参见显示在列表下面的分页组件pagingOnly.jsp
--%>
<div class="page">
	<span title="<fmt:message key="list.paging.totalItems"/>"><fmt:message key="list.paging.total"/><b>${sc.totalCount}</b><fmt:message key="list.paging.item"/></span>
	<span title="<fmt:message key="list.paging.currPage"/>/<fmt:message key="list.paging.totalPage"/>"><fmt:message key="list.paging.no"/><b>${sc.pageNo}/${sc.totalPageCount}</b><fmt:message key="list.paging.page"/></span>
	<span><fmt:message key="list.paging.show"/>
	<select class="selecttxt" name="PrmItemsPerPage" id="PrmItemsPerPage" onchange="return gotoPage${pagingId}(1);" title="<fmt:message key="list.paging.pageSize"/>">
		<option value="10" <c:if test="${sc.pageSize==10}">selected</c:if>>
			10
		</option>
		<option value="20" <c:if test="${sc.pageSize==20}">selected</c:if>>
			20
		</option>
		<option value="30" <c:if test="${sc.pageSize==30}">selected</c:if>>
			30
		</option>
		<option value="50" <c:if test="${sc.pageSize==50}">selected</c:if>>
			50
		</option>
		<option value="100" <c:if test="${sc.pageSize==100}">selected</c:if>>
			100
		</option>
	 </select>
	 </span>
	<c:if test="${sc.totalPageCount>1}">
		<c:choose>
			<c:when test="${sc.pageNo<=1}">
				<a class="no_prev" title='<fmt:message key="list.paging.prev"/>'  > </a>
			</c:when>
			<c:otherwise>
				<a class="prev" title='<fmt:message key="list.paging.prev"/>'  href="javascript:gotoPage${pagingId}(<c:choose><c:when test="${(sc.pageNo-1) lt 1}">1</c:when><c:otherwise>${sc.pageNo-1}</c:otherwise></c:choose>);void(0)"> </a>
			</c:otherwise>
		</c:choose>
		
		<c:choose>
			<c:when test="${sc.pageNo>=sc.totalPageCount}">
				<a class="no_next" title='<fmt:message key="list.paging.next"/>'  > </a>
			</c:when>
			<c:otherwise>
				<a class="next" title='<fmt:message key="list.paging.next"/>'  href="javascript:gotoPage${pagingId}(<c:choose><c:when test="${(sc.pageNo+1) gt sc.totalPageCount}">${sc.totalPageCount}</c:when><c:otherwise>${sc.pageNo+1}</c:otherwise></c:choose>);void(0)"> </a>
			</c:otherwise>
		</c:choose>
		
	</c:if>
</div>